package com.morningstone.bamboo.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


import java.io.Serializable;
import java.util.Date;

/**
 * 现货信息模型
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SpotInfoDO implements Serializable {

    //合同编号
    private  String spotId ;
    //采购吨位
    private  Double buyTonnage;
    //初始计价
    private   Double  initialPrice ;
    //现价
    private Double    currentPrice ;
    //销售吨位
    private  Double   sellTonnage;
    //销售价
    private  Double    sellPrice  ;
    //实现盈亏
    private  Double    profitAndLoss ;
    //销售采购
    private   String  purchaseSell ;
    //创建时间
    @JsonFormat(pattern="yyyyMMdd",timezone="GMT+8")
    private Date createTime  ;
    //匹配编号id
    private  int matchId;
    //成交记录业务编号
    private  String contractId ;
    //现货数量
    private  double quantity ;
    //匹配数量
    private  double matchedQuantity ;
    //剩余数量
    private  double leftQuantity ;
    //购销合同类型
    private  String  buySell ;
    //计划Id
    private String  planTimeId ;
    //单位
    private String  unit ;
    //商品种类
    private String commodityType ;
    //交货时间
    private Date  deliveryDate ;
    //汇率
    private Double exchangeRate;
    //价格
    private Double price ;
    //供应商或客户
    private String coustomOrSup ;
    //供应商
    private String   supplier;
    //客户
    private String  customer ;
    //库房
    private String market ;
    //牌号
    private String mark ;
    //业务员
    private String businessMan;
    //项目编号
    private String proNo;

    //标签字符串
    private String infoStr;

    //uuid
    private  String uuid ;

    //市场价格(现价)
    private Double marketPrice ;
    //纸质合同编号
    private String contractDocumentCode;
    //含税价格
    private Double rateMoney;
}
